Twine\forms\base\FormSection D

Total Complexity 179
Dependencies 10
Dependents 12
Total lines 1,526
Lines of code 684
Logical lines of code 293
Comment lines 628
Methods 65
Properties 10

Methods 65

Method Rating Maintainability Complexity Lines of code
__construct()
A
48 9 36
inputValuesList()
S
54 7 22
isValid()
S
53 6 25
submittedValues()
S
53 6 23
hasSubsection()
S
59 6 15
populateDefaults()
S
59 6 15
formDataPresentIn()
S
59 6 15
addSubsections()
S
51 5 29
getCachedRequest()
S
54 5 25
getAllValidationErrorsString()
S
54 5 21
constructFinalize()
S
52 4 28
findSectionFromPath()
S
56 4 19
receiveFormSubmission()
S
59 4 16
enqueueJs()
S
58 4 15
getValidationErrorsAccumulated()
S
60 4 14
normalize()
S
59 4 14
merge()
S
61 4 12
inputsInSubsections()
S
63 4 11
validData()
S
62 4 11
findSection()
S
63 4 11
getInput()
S
56 3 20
wpEnqueueScripts()
S
50 2 32
subsectionValidationErrorsByHtmlName()
S
64 4 10
localizeValidationRules()
S
62 3 11
getProperSubsection()
S
57 2 19
subforms()
S
65 3 9
inputs()
S
65 3 9
validate()
S
64 3 9
getSubsection()
S
70 3 6
getValidatableSubsections()
S
65 3 9
cleanSensitiveData()
S
74 2 5
setSubmissionErrorMessage()
S
73 2 5
setSubmissionSuccessMessage()
S
72 2 5
subsections()
S
72 2 6
exclude()
S
73 2 5
hide()
S
71 2 6
getOtherJsData()
S
71 2 6
getJqueryValdationRules()
S
65 2 10
htmlNamePrefix()
S
70 2 6
ensureScriptsLocalized()
S
75 2 5
ensureConstructFinalizedCalled()
S
73 2 5
setDefaultNameIfEmpty()
S
68 2 7
subsectionExists()
S
78 2 3
addSubsection()
S
70 2 6
localizeScriptForAllForms()
S
62 1 12
enqueueAndLocalizeFormJs()
S
62 1 12
submissionSuccessMessage()
S
82 1 3
name()
S
77 1 4
submissionErrorMessage()
S
82 1 3
parentSection()
S
77 1 4
resetJsLocalization()
S
80 1 3
hasHeceivedSubmission()
S
77 1 4
inputPrettyValues()
S
79 1 3
inputValues()
S
79 1 3
hasSubsections()
S
80 1 3
htmlClass()
S
80 1 3
jsLocalization()
S
80 1 3
getLocalizedErrorMessages()
S
66 1 9
getHtml()
S
77 1 4
getHtmlAndJs()
S
77 1 4
getInputValue()
S
76 1 4
wasSubmitted()
S
80 1 3
getHtmlForInput()
S
80 1 3
getLayoutStrategy()
S
82 1 3
useNonce()
S
82 1 3